package com.wuzhishan.news.service;

import com.wuzhishan.news.pojo.Result;

import javax.servlet.http.HttpSession;

public interface commentService {
    /**
     * 添加文章评论
     * @param toid
     * @param pid
     * @param text
     * @param session
     * @return
     */
    Result addComment(String toid, String pid, String text, HttpSession session);


    /**
     * 获取当前文章评论
     * @param articleId
     * @param pageSize
     * @param pn
     * @return
     */
    Result selectPageComment(String articleId, String pageSize, String pn);
}
